package com.ssy.lingxi.order.model.vo.basic.request;

import com.ssy.lingxi.order.handler.annotation.DateTimeFormatAnnotation;
import com.ssy.lingxi.order.model.vo.common.request.LogisticsAddressVO;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @author wyx
 * @version 2.0.0
 * @date 2021-10-13
 */
@Setter
@Getter
public class ReceiveOrderUpdateVO implements Serializable {

    private static final long serialVersionUID = -4170596152752135881L;
    /**
     * 收货单id
     */
    @NotNull(message = "收货单id不能为空")
    private Long id;
    /**
     * 摘要
     */
    @NotBlank(message = "摘要不能为空！")
    @Size(max = 100, message = "摘要最长100个字符！")
    private String digest;

    /**
     * 收货时间 yyyy-MM-dd HH:mm:ss
     */
    @DateTimeFormatAnnotation(message = "收货时间格式错误！")
    private String receiveTime;

    /**
     * 备注
     */
    private String remark;

    /**
     * 收货人
     */
    private LogisticsAddressVO executorVO;

}
